package com.boil.qz.safekavass.pojo;

/**
 * Created by ChenYong on 2017-07-31.
 * <br>
 * 资源映射实体类。
 */
public class ResourceVo extends BaseVo {
    /**
     * 父资源 ID
     */
    protected Long parentId;
    /**
     * 资源名称
     */
    protected String resourceName;
    /**
     * 资源图标
     */
    protected String resourceIcon;
    /**
     * 资源 URL
     */
    protected String resourceUrl;
    /**
     * 资源类型：0-根资源；1-菜单；2-按钮……
     */
    protected Integer resourceType;
    /**
     * 资源层级
     */
    protected Integer resourceLevel;
    /**
     * 资源顺序
     */
    protected Integer resourceOrder;
    /**
     * 权限代码
     */
    protected String permissionCode;
    /**
     * 创建时间
     */
    protected String createTime;
    /**
     * 删除代码：0-未删除；1-已删除
     */
    private Integer deletedCode;

    /**
     * 默认构造器。
     */
    public ResourceVo() {
        super();
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getResourceIcon() {
        return resourceIcon;
    }

    public void setResourceIcon(String resourceIcon) {
        this.resourceIcon = resourceIcon;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public Integer getResourceType() {
        return resourceType;
    }

    public void setResourceType(Integer resourceType) {
        this.resourceType = resourceType;
    }

    public Integer getResourceLevel() {
        return resourceLevel;
    }

    public void setResourceLevel(Integer resourceLevel) {
        this.resourceLevel = resourceLevel;
    }

    public Integer getResourceOrder() {
        return resourceOrder;
    }

    public void setResourceOrder(Integer resourceOrder) {
        this.resourceOrder = resourceOrder;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getDeletedCode() {
        return deletedCode;
    }

    public void setDeletedCode(Integer deletedCode) {
        this.deletedCode = deletedCode;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ResourceVo{");
        sb.append("parentId=").append(parentId);
        sb.append(", resourceName='").append(resourceName).append('\'');
        sb.append(", resourceIcon='").append(resourceIcon).append('\'');
        sb.append(", resourceUrl='").append(resourceUrl).append('\'');
        sb.append(", resourceType=").append(resourceType);
        sb.append(", resourceLevel=").append(resourceLevel);
        sb.append(", resourceOrder=").append(resourceOrder);
        sb.append(", permissionCode='").append(permissionCode).append('\'');
        sb.append(", createTime='").append(createTime).append('\'');
        sb.append(", deletedCode=").append(deletedCode);
        sb.append(", id=").append(id);
        sb.append('}');
        return sb.toString();
    }
}